<template functional>
  <el-dropdown
    trigger="click"
    v-bind="data.attrs"
    v-on="listeners"
  >
    <slot name="prefix" />
    <el-dropdown-menu slot="dropdown">
      <el-dropdown-item
        :divided="item.divided"
        v-for="item of props.commands"
        :key="item.index"
        :command="item"
      >
        <span>{{ item.label }}</span>
      </el-dropdown-item>
    </el-dropdown-menu>
    <slot name="suffix" />
  </el-dropdown>
</template>
